<%@ page pageEncoding="utf-8" import="java.util.*" %>
<%@ page import="DoMain.Food" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

</head>
<body>

<% List<Food> foods2=(List<Food>)request.getAttribute("foods2"); %>

<table class="table table-hover">

    <tr class="table-primary" align="center">
    
      <th scope="col" align="center">员工姓名</th>
      <th scope="col" align="center">月份</th>
      <th scope="col" align="center">用餐次数</th>
      <th scope="col" align="center">总费用/元</th>
    </tr>


  <c:forEach items="${foods2}" var="fo">
			<tr  class="table-light">

				<td class="table-success" scope="row" align="center">${fo.staffName}</td>
				<td class="table-warning" scope="row" align="center">${fo.months}</td>
				<td class="table-warning" scope="row" align="center">${fo.counts}</td>
				<td class="table-warning" scope="row" align="center">${fo.cost}</td>
			</tr>
			</c:forEach>
  	</table>
  	
  		<table align="center">
	<tr align="center">
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=1">首页</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=1">1</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=2">2</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=3">3</a></td>
    <td><form action="getAccountAll.do" method="post">
    <select name="currentPage">
    <option value="1">跳页</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    </select><input type="submit" class="btn btn-outline-danger" value="确定"></form></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=4">4</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=5">5</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=6">6</a></td>
    <td align="center" class="page-item"><a class="page-link" href="getAccountAll.do?currentPage=12">尾页</a></td>
</tr>
</table>
</body>
</html>